<!DOCTYPE html>
<html
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        >

<h:head>
    <title>Domain Contents</title>
    <h:outputStylesheet library="css" name="typeface.css"/>
    <h:outputStylesheet library="css" name="common.css"/>
    <h:outputStylesheet library="css" name="bootstrap.css"/>
    <h:outputStylesheet library="css" name="login.css"/>
    <f:loadBundle basename="com.dataart.training.crimequalification.facesutils.messages"
                  var="msgs"></f:loadBundle>
    <f:loadBundle basename="com.dataart.training.crimequalification.facesutils.configurations"
                  var="conf"></f:loadBundle>
</h:head>

<f:view>

<h:body styleClass="body">
<ui:include src="/views/navbar.xhtml"/>

<div class="container">

<h:panelGroup id="mainobject">
    <p style="font-size: 30px" class="text-info">Основной объект преступления</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="mainObj" value="#{domainContentsBean.mainCrimeObjects}">
                <tr>
                    <td>${mainObj.codeName}</td>
                    <td>${mainObj.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="facultobject">
    <p style="font-size: 30px" class="text-info">Факультативный объект преступления</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="facObj" value="#{domainContentsBean.facultativeCrimeObjects}">
                <tr>
                    <td>${facObj.codeName}</td>
                    <td>${facObj.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="supplobject">

    <p style="font-size: 30px" class="text-info">Дополнительный объект преступления</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="supObj" value="#{domainContentsBean.supplementaryCrimeObjects}">
                <tr>
                    <td>${supObj.codeName}</td>
                    <td>${supObj.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="subject">

    <p style="font-size: 30px" class="text-info">Субъект преступления</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="subj" value="#{domainContentsBean.crimeSubjects}">
                <tr>
                    <td>${subj.codeName}</td>
                    <td>${subj.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="consequences">

    <p style="font-size: 30px" class="text-info">Последствия преступления</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="cons" value="#{domainContentsBean.crimeConsequences}">
                <tr>
                    <td>${cons.codeName}</td>
                    <td>${cons.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="intents">

    <p style="font-size: 30px" class="text-info">Вина: умысел</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="it" value="#{domainContentsBean.intents}">
                <tr>
                    <td>${it.codeName}</td>
                    <td>${it.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="motives">

    <p style="font-size: 30px" class="text-info">Мотив</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="m" value="#{domainContentsBean.motives}">
                <tr>
                    <td>${m.codeName}</td>
                    <td>${m.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="indiscretions">

    <p style="font-size: 30px" class="text-info">Вина: неосторожность</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="ind" value="#{domainContentsBean.indiscretions}">
                <tr>
                    <td>${ind.codeName}</td>
                    <td>${ind.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="purposes">

    <p style="font-size: 30px" class="text-info">Цель</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="p" value="#{domainContentsBean.purposes}">
                <tr>
                    <td>${p.codeName}</td>
                    <td>${p.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="delinquentstates">

    <p style="font-size: 30px" class="text-info">Состояние виновного</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="ds" value="#{domainContentsBean.delinquentStates}">
                <tr>
                    <td>${ds.codeName}</td>
                    <td>${ds.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="criminal-acts">
    <p style="font-size: 30px" class="text-info">Преступное деяние</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="ca" value="#{domainContentsBean.criminalActs}">
                <tr>
                    <td>${ca.codeName}</td>
                    <td>${ca.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>
<br/>
<br/>
<h:panelGroup id="act-features">
    <p style="font-size: 30px" class="text-info">Признак деяния</p>
    <hr/>
    <br/>

    <div class="well">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>Code Name</th>
                <th>Textual Value</th>
                <th style="width: 36px;"></th>
            </tr>
            </thead>

            <tbody>
            <ui:repeat var="af" value="#{domainContentsBean.actFeatures}">
                <tr>
                    <td>${af.codeName}</td>
                    <td>${af.textualValue}</td>
                </tr>
            </ui:repeat>
            </tbody>
        </table>
    </div>
</h:panelGroup>


</div>

</h:body>

</f:view>
</html>